﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UMLTouch.Core.Entities
{
    public class SegmentedStroke
    {
        #region Fields

        List<Segment> _segments;
        Stroke _baseStroke;
        //List<Intersection> _intersections;

        #endregion

        #region Properties

        public List<Segment> Segments
        {
            get { return _segments; }
            set { _segments = value; }
        }

        //public List<Intersection> Intersections
        //{
        //    get { return _intersections; }
        //    set { _intersections = value; }
        //}


        public Stroke BaseStroke
        {
            get { return _baseStroke; }
            set { _baseStroke = value; }
        }

        public Boolean IsClosed
        {
            get
            {
                return _baseStroke.IsClosed;
            }
        } 
        #endregion

        public SegmentedStroke(Stroke baseStroke)
        {
            _baseStroke = baseStroke;
            //_intersections = new List<Intersection>();
            _segments = new List<Segment>();
        }

    }
}
